#!/bin/bash

# master01生成key
ssh-keygen
cat .ssh/id_rsa.pub

# ## 其他所有节点运行
cat <<EOF | sudo tee -a ~/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDm/UXA+FGRehR+sh8bZvcGenra6ykZPb3Ia1/1ncFb1pNeX4ZZkPDGnfGCfxq6wXpUkWXjd7uiCvnfQCgRk9Nv51tMSnH6s8hjSr7o9eh2r4WzNVmlmQZNoUvE5H6/+vgF5xPCE3LRpdoPqcPfSR9UpoIZHP6ny+IK9S4V/uXMGt6UR58CO3o6aP7FSoLVhr8VEyDDbmyCXK9cNJCE7fjPsw26+MYKLCg22FJO1hx8ipaJDXIc7xiIB40wO2YgZjeTLqI/F5k+ric1vVyx2o4xa7fYX4o+IXuLBPQhFwGsG7krY83cjYQSVSOoSbtgD5ujTE6i76lFuj/4tyueeLgaoRKkWomncZH4OLDET7oKOyT9TKOQrLof5aqkoh066+qSfeb8A4+TD4vpoml5eGpoUa7h5qNnlv8narHLTWYIxdvDX+5MuuJdJqWbcMTtEM/gRAESgNpFLigk0A/dU1WYy4AbsE56BwsGt8wJ2oOQ210zRDwYX1vg0nQUL93MlRk= vagrant@master-1
EOF